#include"swap.h"

void Swap::swap()
{
    std::cout<<"before temp:"<<std::endl;
    std::cout<<"a = "<<this->_a<<std::endl;
    std::cout<<"b = "<<this->_b<<std::endl;

    int _temp = _a;
    _a = _b;
    _b = _temp;
}

void Swap::print()
{
    std::cout<<"after temp:"<<std::endl;
    std::cout<<"a = "<<this->_a<<std::endl;
    std::cout<<"b = "<<this->_b<<std::endl;
}